package com.pinyoumei.app.bean;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Administrator on 2021-06-26.
 * --------- 日期 ------- 维护人 ------------ 变更内容 --------
 * 2021-06-26        Administrator             新增Person类
 * 2021-06-26        Administrator             增加sex属性
 */
public class CouponBean {

    /**
     * code : 1
     * errors : {}
     * msg : 操作成功
     * result : {"coupon_list":[{"coupon_amount":10,"coupon_title":"机具商城优惠券","use_condition":"需订单金额大于100.0元","expire_time":"2021-06-10 16:00:00","coupon_type":1,"coupon_status":2},{"coupon_amount":20,"coupon_title":"境外商城优惠券","use_condition":"需订单金额大于300.0元","expire_time":"2021-06-25 16:00:00","coupon_type":2,"coupon_status":0},{"coupon_amount":10,"coupon_title":"机具商城优惠券","use_condition":"需订单金额大于150.0元","expire_time":"2021-06-25 16:00:00","coupon_type":1,"coupon_status":1}]}
     */

    private int code;
    private ErrorsBean errors;
    private String msg;
    private ResultBean result;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public ErrorsBean getErrors() {
        return errors;
    }

    public void setErrors(ErrorsBean errors) {
        this.errors = errors;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ErrorsBean {
    }

    public static class ResultBean {
        private List<CouponListBean> coupon_list;

        public List<CouponListBean> getCoupon_list() {
            return coupon_list;
        }

        public void setCoupon_list(List<CouponListBean> coupon_list) {
            this.coupon_list = coupon_list;
        }

        public static class CouponListBean {
            /**
             * coupon_amount : 10
             * coupon_title : 机具商城优惠券
             * use_condition : 需订单金额大于100.0元
             * expire_time : 2021-06-10 16:00:00
             * coupon_type : 1
             * coupon_status : 2
             */

            private BigDecimal coupon_amount;
            private String coupon_title;
            private String use_condition;
            private String expire_time;
            private int coupon_type;
            private int coupon_status;

            public BigDecimal getCoupon_amount() {
                return coupon_amount;
            }

            public void setCoupon_amount(BigDecimal coupon_amount) {
                this.coupon_amount = coupon_amount;
            }

            public String getCoupon_title() {
                return coupon_title;
            }

            public void setCoupon_title(String coupon_title) {
                this.coupon_title = coupon_title;
            }

            public String getUse_condition() {
                return use_condition;
            }

            public void setUse_condition(String use_condition) {
                this.use_condition = use_condition;
            }

            public String getExpire_time() {
                return expire_time;
            }

            public void setExpire_time(String expire_time) {
                this.expire_time = expire_time;
            }

            public int getCoupon_type() {
                return coupon_type;
            }

            public void setCoupon_type(int coupon_type) {
                this.coupon_type = coupon_type;
            }

            public int getCoupon_status() {
                return coupon_status;
            }

            public void setCoupon_status(int coupon_status) {
                this.coupon_status = coupon_status;
            }
        }
    }
}
